package com.liu.springmvc.adapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author LIU
 * @version 1.0
 * @description TODO
 * @date 2024/1/23 15:31
 * 适配器默认实现
 * org.springframework.web.servlet.HandlerAdapter=
 *  org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,\
 * 	org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,\
 * 	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter,\
 * 	org.springframework.web.servlet.function.support.HandlerFunctionAdapter
 *
 */
public interface HandlerAdapter {

    public boolean supports(Object handler);

    public Object handler(HttpServletRequest request, HttpServletResponse response,Object handler) throws Exception;
}
